package com.usian.consumerlogin.feign;

import com.usian.consumerlogin.pojo.Result;
import com.usian.model.RaceDto;
import com.usian.model.RaceTeam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("day12Race")
public interface FeignRace {
    @RequestMapping("race/raceCount")
    Result raceCount(@RequestParam(value = "consumerId") Integer consumerId);
    @RequestMapping("race/raceFindAll")
    Result raceFindAll(@RequestParam(value = "lib") String lib,@RequestBody RaceDto raceDto);
    @RequestMapping("raceInfo/quizfindAll")
     Result quizfindAll(@RequestBody RaceTeam raceTeam);
}
